package com.ruoyi.member.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.DataSource;
import com.ruoyi.common.enums.DataSourceType;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.db.mapper.MemberAuthConfigInfoMapper;
import com.ruoyi.db.domain.MemberAuthConfigInfo;
import com.ruoyi.member.service.IMemberAuthConfigInfoService;

/**
 * 用户认证配置Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-13
 */
@Service
@DataSource(DataSourceType.SLAVE)
public class MemberAuthConfigInfoServiceImpl implements IMemberAuthConfigInfoService 
{
    @Autowired
    private MemberAuthConfigInfoMapper memberAuthConfigInfoMapper;

    /**
     * 查询用户认证配置
     * 
     * @param id 用户认证配置主键
     * @return 用户认证配置
     */
    @Override
    public MemberAuthConfigInfo selectMemberAuthConfigInfoById(Long id)
    {
        return memberAuthConfigInfoMapper.selectMemberAuthConfigInfoById(id);
    }

    /**
     * 查询用户认证配置列表
     * 
     * @param memberAuthConfigInfo 用户认证配置
     * @return 用户认证配置
     */
    @Override
    public List<MemberAuthConfigInfo> selectMemberAuthConfigInfoList(MemberAuthConfigInfo memberAuthConfigInfo)
    {
        return memberAuthConfigInfoMapper.selectMemberAuthConfigInfoList(memberAuthConfigInfo);
    }

    /**
     * 新增用户认证配置
     * 
     * @param memberAuthConfigInfo 用户认证配置
     * @return 结果
     */
    @Override
    public int insertMemberAuthConfigInfo(MemberAuthConfigInfo memberAuthConfigInfo)
    {
        return memberAuthConfigInfoMapper.insertMemberAuthConfigInfo(memberAuthConfigInfo);
    }

    /**
     * 修改用户认证配置
     * 
     * @param memberAuthConfigInfo 用户认证配置
     * @return 结果
     */
    @Override
    public int updateMemberAuthConfigInfo(MemberAuthConfigInfo memberAuthConfigInfo)
    {
        return memberAuthConfigInfoMapper.updateMemberAuthConfigInfo(memberAuthConfigInfo);
    }

    /**
     * 批量删除用户认证配置
     * 
     * @param ids 需要删除的用户认证配置主键
     * @return 结果
     */
    @Override
    public int deleteMemberAuthConfigInfoByIds(Long[] ids)
    {
        return memberAuthConfigInfoMapper.deleteMemberAuthConfigInfoByIds(ids);
    }

    /**
     * 删除用户认证配置信息
     * 
     * @param id 用户认证配置主键
     * @return 结果
     */
    @Override
    public int deleteMemberAuthConfigInfoById(Long id)
    {
        return memberAuthConfigInfoMapper.deleteMemberAuthConfigInfoById(id);
    }
}
